<template>
  <div>
    <el-col :xs="24" :sm="12" :md="percent">
      <slot></slot>
    </el-col>
  </div>
</template>

<script>
  export default {
      name:"responseBox",
      data(){
        return{
          percent:8,
          width:''
        }
      },
      props:{
        selfmd:String
      },
      created(){
        this.width = window.screen.width
        
        if(this.width>1440){
          this.percent = 8
        }else{
          this.percent = 12
        }
        if(this.selfmd){
          this.percent = Number(this.selfmd)
        }
      }
  }
</script>

<style scoped>

</style>
